//
//  Common.swift
//  YHWeibo
//
//  Created by 昱含 on 16/5/19.
//  Copyright © 2016年 YuHan. All rights reserved.
//

import UIKit

let screenWidth = UIScreen.mainScreen().bounds.size.width
let screenHight = UIScreen.mainScreen().bounds.size.height


//用户登录授权配置信息
let client_id = "759582384"
let client_secret = "118923e405f2d653dac8c935bd890694"
let redirect_uri = "http://www.itheima.com"

//定义通知的名称
let SwitchRootViewController = "SwitchRootViewController"

//定义通用错误信息
let appErrorTip = "世界上最遥远的距离就是没有网络"
let EmotionDidClickNotification = "EmotionDidClickNotification"

func randomColor() -> UIColor{
    
    let red = CGFloat(random() % 256) / 255.0
    let blue = CGFloat(random() % 256) / 255.0
    let green = CGFloat(random() % 256) / 255.0
    
    return UIColor(red: red, green: green, blue: blue, alpha: 1)
    
}

let sharedDF = NSDateFormatter()